home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xulapp / nsIXULRuntime.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  166 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXULRuntime.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXULRuntime_h__
  6. #define __gen_nsIXULRuntime_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIXULRuntime */
  19. #define NS_IXULRUNTIME_IID_STR "2848ab92-d912-11d9-89f7-001124787b2e"
  20.  
  21. #define NS_IXULRUNTIME_IID \
  22.   {0x2848ab92, 0xd912, 0x11d9, \
  23.     { 0x89, 0xf7, 0x00, 0x11, 0x24, 0x78, 0x7b, 0x2e }}
  24.  
  25. /**
  26.  * Provides information about the XUL runtime.
  27.  * @status UNSTABLE - This interface is not frozen and will probably change in
  28.  *                    future releases. If you need this functionality to be
  29.  *                    stable/frozen, please contact Benjamin Smedberg.
  30.  */
  31. class NS_NO_VTABLE nsIXULRuntime : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULRUNTIME_IID)
  35.  
  36.   /**
  37.    * Whether the application was launched in safe mode.
  38.    */
  39.   /* readonly attribute boolean inSafeMode; */
  40.   NS_IMETHOD GetInSafeMode(PRBool *aInSafeMode) = 0;
  41.  
  42.   /**
  43.    * Whether to write console errors to a log file. If a component
  44.    * encounters startup errors that might prevent the app from showing
  45.    * proper UI, it should set this flag to "true".
  46.    */
  47.   /* attribute boolean logConsoleErrors; */
  48.   NS_IMETHOD GetLogConsoleErrors(PRBool *aLogConsoleErrors) = 0;
  49.   NS_IMETHOD SetLogConsoleErrors(PRBool aLogConsoleErrors) = 0;
  50.  
  51.   /**
  52.    * A string tag identifying the current operating system. This is taken
  53.    * from the OS_TARGET configure variable. It will always be available.
  54.    */
  55.   /* readonly attribute AUTF8String OS; */
  56.   NS_IMETHOD GetOS(nsACString & aOS) = 0;
  57.  
  58.   /**
  59.    * A string tag identifying the binary ABI of the current processor and
  60.    * compiler vtable. This is taken from the TARGET_XPCOM_ABI configure
  61.    * variable. It may not be available on all platforms, especially
  62.    * unusual processor or compiler combinations.
  63.    *
  64.    * The result takes the form <processor>-<compilerABI>, for example:
  65.    *   x86-msvc
  66.    *   ppc-gcc3
  67.    *
  68.    * This value should almost always be used in combination with "OS".
  69.    *
  70.    * @throw NS_ERROR_NOT_AVAILABLE if not available.
  71.    */
  72.   /* readonly attribute AUTF8String XPCOMABI; */
  73.   NS_IMETHOD GetXPCOMABI(nsACString & aXPCOMABI) = 0;
  74.  
  75. };
  76.  
  77. /* Use this macro when declaring classes that implement this interface. */
  78. #define NS_DECL_NSIXULRUNTIME \
  79.   NS_IMETHOD GetInSafeMode(PRBool *aInSafeMode); \
  80.   NS_IMETHOD GetLogConsoleErrors(PRBool *aLogConsoleErrors); \
  81.   NS_IMETHOD SetLogConsoleErrors(PRBool aLogConsoleErrors); \
  82.   NS_IMETHOD GetOS(nsACString & aOS); \
  83.   NS_IMETHOD GetXPCOMABI(nsACString & aXPCOMABI); 
  84.  
  85. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  86. #define NS_FORWARD_NSIXULRUNTIME(_to) \
  87.   NS_IMETHOD GetInSafeMode(PRBool *aInSafeMode) { return _to GetInSafeMode(aInSafeMode); } \
  88.   NS_IMETHOD GetLogConsoleErrors(PRBool *aLogConsoleErrors) { return _to GetLogConsoleErrors(aLogConsoleErrors); } \
  89.   NS_IMETHOD SetLogConsoleErrors(PRBool aLogConsoleErrors) { return _to SetLogConsoleErrors(aLogConsoleErrors); } \
  90.   NS_IMETHOD GetOS(nsACString & aOS) { return _to GetOS(aOS); } \
  91.   NS_IMETHOD GetXPCOMABI(nsACString & aXPCOMABI) { return _to GetXPCOMABI(aXPCOMABI); } 
  92.  
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIXULRUNTIME(_to) \
  95.   NS_IMETHOD GetInSafeMode(PRBool *aInSafeMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInSafeMode(aInSafeMode); } \
  96.   NS_IMETHOD GetLogConsoleErrors(PRBool *aLogConsoleErrors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogConsoleErrors(aLogConsoleErrors); } \
  97.   NS_IMETHOD SetLogConsoleErrors(PRBool aLogConsoleErrors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLogConsoleErrors(aLogConsoleErrors); } \
  98.   NS_IMETHOD GetOS(nsACString & aOS) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOS(aOS); } \
  99.   NS_IMETHOD GetXPCOMABI(nsACString & aXPCOMABI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXPCOMABI(aXPCOMABI); } 
  100.  
  101. #if 0
  102. /* Use the code below as a template for the implementation class for this interface. */
  103.  
  104. /* Header file */
  105. class nsXULRuntime : public nsIXULRuntime
  106. {
  107. public:
  108.   NS_DECL_ISUPPORTS
  109.   NS_DECL_NSIXULRUNTIME
  110.  
  111.   nsXULRuntime();
  112.  
  113. private:
  114.   ~nsXULRuntime();
  115.  
  116. protected:
  117.   /* additional members */
  118. };
  119.  
  120. /* Implementation file */
  121. NS_IMPL_ISUPPORTS1(nsXULRuntime, nsIXULRuntime)
  122.  
  123. nsXULRuntime::nsXULRuntime()
  124. {
  125.   /* member initializers and constructor code */
  126. }
  127.  
  128. nsXULRuntime::~nsXULRuntime()
  129. {
  130.   /* destructor code */
  131. }
  132.  
  133. /* readonly attribute boolean inSafeMode; */
  134. NS_IMETHODIMP nsXULRuntime::GetInSafeMode(PRBool *aInSafeMode)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* attribute boolean logConsoleErrors; */
  140. NS_IMETHODIMP nsXULRuntime::GetLogConsoleErrors(PRBool *aLogConsoleErrors)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. NS_IMETHODIMP nsXULRuntime::SetLogConsoleErrors(PRBool aLogConsoleErrors)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute AUTF8String OS; */
  150. NS_IMETHODIMP nsXULRuntime::GetOS(nsACString & aOS)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute AUTF8String XPCOMABI; */
  156. NS_IMETHODIMP nsXULRuntime::GetXPCOMABI(nsACString & aXPCOMABI)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* End of implementation class template. */
  162. #endif
  163.  
  164.  
  165. #endif /* __gen_nsIXULRuntime_h__ */
  166.